#!/bin/bash

echo "#Parse the .rpt \(path extraction\) file"
echo "#Author: Min Li, Contact: mli46@wisc.edu"
echo -ne "#Generated Date: "
date
echo 

echo "From_pin To_pin Slack" > $HSTA_RPT_REPORT
awk '/path/ {getline; from_pin=$3; getline; to_pin=$3; getline; getline; getline; slack=$2; \
printf("%s %s %.3f\n", from_pin, to_pin, slack)}' $HSTA_RPT_FILE >> $HSTA_RPT_REPORT
